package com.ulife.me.common.base.controller;

import java.util.Map;

import com.google.common.collect.Maps;

public class JsonResult {

	private Integer code;
	private String msg;
	private Map<String,Object> data ;
	
	
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Map<String, Object> getData() {
		return data;
	}
	public void setData(Map<String, Object> data) {
		this.data = data;
	}
	
	public void putData(String key,Object value){

        if(data == null){
            data = Maps.newHashMap();
        }

        data.put(key, value);
	}
	
}
